import request from '@/utils/request';

// 查询产品业绩列表
export function list(query) {
    return request({
        url: '/system/productAchievement/list',
        method: 'get',
        params: query
    });
}
// 查询产品业绩数据
// export function companyName(query) {
//     return request({
//         url: '/system/companyInfo/list',
//         method: 'get',
//         params: query
//     });
// }

// 查询产品业绩详细
export function getDetail(id) {
    return request({
        url: '/system/productAchievement/' + id,
        method: 'get'
    });
}
// 查询产品业绩编号
export function code() {
    return request({
        url: '/system/productAchievement/getCodeNo',
        method: 'get'
    });
}

// 新增产品业绩
export function add(data) {
    return request({
        url: '/system/productAchievement',
        method: 'post',
        data: data
    });
}

// 修改产品业绩
export function update(data) {
    return request({
        url: '/system/productAchievement',
        method: 'put',
        data: data
    });
}

// 删除产品业绩
export function del(id) {
    return request({
        url: '/system/productAchievement/' + id,
        method: 'delete'
    });
}
